package com.avic.cplustest;

/**
 * Creater: Created by wangyz on 31/8/2017.
 * Email: 936804097@qq.com
 */

public class Cat extends Animal {
    public Cat(String name) {
        super(name);
        System.out.println("Cat Construct call...");
    }

    @Override
    public String getName() {
        return "My name is " + this.name;
    }

    @Override
    public void run() {
        System.out.println(name + " Cat.run...");
    }
}
